package org.touch.test;

import java.io.IOException;

import org.touch.client.Client;
import org.touch.server.SimpleListener;

public class ClientTestCase {

	public static void main(String[] args){
		Client client = new Client();
		SimpleListener listener = new SimpleListener(0);
		client.register(listener);
		try {
			client.connect("localhost", 55555);
			for(int i=0; i< 10; i++){
				client.send("test\n hello world! " + i);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
